namespace Collaboris.Saf.Actions.Wss.Tests.Generated
{
    using Engine.Report;

    using Microsoft.VisualStudio.TestTools.UnitTesting;
    using Saf.Tests;
    using Entities;

    using SharePoint.Wss.Webs;

    using Wss.Web;


    /// <summary>
    /// This test was originally generated but has now been tested and verfiied by MJ
    /// </summary>
    [TestClass]
    public class CreateWebTest
    {

        [TestMethod]
        public void CreateWeb_Test()
        {
            WSSTestAssistant<CreateWeb, WebInfo> createweb =
                    new WSSTestAssistant<CreateWeb, WebInfo>(TestEnvironment.PublishingSite, 
                        "CreateWebTestWeb", "BLANKINTERNET#0");

            using (createweb)
            {
                MacroReport doReport = createweb.DoMacro();

                Assert.IsTrue(SPWebHelper.WebExists(createweb.TestWeb, createweb.FirstEntity.Url));

                MacroReport unDoReport = createweb.UndoMacro();

                Assert.IsFalse(SPWebHelper.WebExists(createweb.TestWeb, createweb.FirstEntity.Url));
            }
        }

    }
}
